package Java9_13;

import java.util.Arrays;
import java.util.Random;

public class Work1 {
    public static void main(String[] args) {
     int []arr=new int[6];
     Random random=new Random();
     int index=0;
     arr[index]=random.nextInt(33)+1;
     in:
        while (true){
            int num= random.nextInt(33)+1;
            for (int i = 0; i <=index ; i++) {
                if (num==arr[i]){
                    continue in;
                }
            }
            arr[++index]=num;
            if (index==5){
                break in;
            }
        }
        Arrays.sort(arr);
        int blue=random.nextInt(16)+1;
        int[]arr2=new int[]{blue};
        System.out.println(Arrays.toString(arr));
        System.out.println(Arrays.toString(arr2));
    }
}
